[gd_scene load_steps=4 format=2]

[ext_resource path="res://Scripts/Unit.gd" type="Script" id=1]
[ext_resource path="res://Scripts/AI.gd" type="Script" id=2]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4, 4 )

[node name="Unit" type="KinematicBody2D"]
script = ExtResource( 1 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 4, 4 )
shape = SubResource( 1 )

[node name="AI" type="Node2D" parent="."]
script = ExtResource( 2 )

[node name="Label" type="Label" parent="."]
margin_left = -20.0
margin_top = -18.0
margin_right = 20.0
margin_bottom = -4.0

[node name="Center" type="Position2D" parent="."]
position = Vector2( 4, 4 )

[node name="Sprite" type="Sprite" parent="Center"]
position = Vector2( -4, -4 )
centered = false

[node name="TractorPort" type="Position2D" parent="Center"]

[node name="ArmorPort" type="Position2D" parent="Center"]

[node name="WeaponPort" type="Position2D" parent="Center"]
position = Vector2( -4, -4 )

[connection signal="order_done" from="AI" to="." method="_on_AI_order_done"]
